<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: "app",
  beforeCreate() {},

  mounted() {
    let vm = this
    wx.miniProgram.getEnv(function(res) {
      console.log(res.miniprogram); // true
      vm.$store.state.isWxEnvironment = res.miniprogram;
    });
  }
};
</script>

<style>
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin: -8px;
  background-color: white;
}
</style>
